<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 应用设置 -- 支付配置
// +----------------------------------------------------------------------

if(request()->server("IS_SCF")) { //云开发
    return [
        "QCloudConfig" => [
            "secretId" => env("bucketConfig.secretId"), // API密钥ID
            "secretKey" => env("bucketConfig.secretKey"), // API密钥KEY
            "bucket" => env("bucketConfig.bucket"), // bucket 的命名规则为{name}-{appid} ，此处填写的存储桶名称必须为此格式
            "region" => env("bucketConfig.region"), //地域，如ap-guangzhou,ap-beijing-1
        ], //腾讯云cos存储配置
    ];
}else{
    return [
        "QCloudConfig" => [
            "secretId" => "", // API密钥ID
            "secretKey" => "", // API密钥KEY
            "bucket" => "", // bucket 的命名规则为{name}-{appid} ，此处填写的存储桶名称必须为此格式
            "region" => "", //地域，如ap-guangzhou,ap-beijing-1
        ], //腾讯云cos存储配置
    ];
}
